<link href="../addons/jy_newcar/custom/templates/mobile/style.css?v=201905251730" rel="stylesheet">
<style>
.fui-header a.back:before {
    border-color: #fff;
}
</style>
<div class="fui-page fui-page-current page-commission-down">
	<div ng-include="sys_html('_goback')"></div>
	<div class="fui-tab fui-tab-danger" style="margin-top:0">
		<a ng-class="{'external active':pagedata.params.status == 100}" ng-click="pagedata.params.status = 100;tool.get_list('/mai.order/list/',true)">全部</a>
		<a ng-class="{'external active':pagedata.params.status == 0}" ng-click="pagedata.params.status = 0;tool.get_list('/mai.order/list/',true)">待付款</a>
		<a ng-class="{'external active':pagedata.params.status == 1}" ng-click="pagedata.params.status = 1;tool.get_list('/mai.order/list/',true)">处理中</a>
		<a ng-class="{'external active':pagedata.params.status == 3}" ng-click="pagedata.params.status = 3;tool.get_list('/mai.order/list/',true)">已完成</a>
	</div>
    <div class="fui-content">
		<div style="padding:0.5rem;margin-top:-0.5rem">
        <div ng-repeat="item in pagedata.list" class="fui-list-group radius" id="container" >
			<div class="fui-list" style="height:auto">
				<div class="fui-list-media">
					<img ng-if="item.member.avatar" ng-src="{{tomedia(item.member.avatar) ||'../core/resource/images/nopic.jpg'}}" class="round" style="width:2rem;height:2rem">
					<i ng-if="!item.member.avatar" class="icon icon-my2"></i>
				</div>
				<div class="fui-list-inner">
					<div class="row">
						  <div class="row-text" >
						 {{item.member.nickname}}
						  </div>
					</div>
					<div class="subtitle" style="font-size: .55rem;">
						单号：{{item.ordersn}}
					</div>
					<div class="subtitle" style="font-size: .55rem;line-height:1.2rem">
						订单金额：<span class="red">￥{{item.price}}</span>
						<span ng-if="item.status==0" ng-click="modal_json({'action':'jy_newcar/mai.order/upprice/id='+item.id})" class="label label-success" style="border-radius:1rem;font-size:0.65rem">改价</span>
					</div>
					<div class="subtitle" style="font-size: .55rem;">
						时间：{{item.createtime}}
					</div>
				</div>
				<div class="row-remark" style="min-width:3rem">
					<span class="syscolor" style="font-size:0.6rem">{{item.statustitle}}</span>
					<p class="gray">佣金:{{item.commission_money || '0.00'}}</p>
				</div>
			</div>
			<div ng-repeat="m in item.merchs" style="background:none">
						<div class="fui-list external" style="padding: 0 0.5rem" data-nocache="true" ng-click="access_json('jy_newcar/orderdetail//orderid='+item.id)">
							<div class="fui-list-inner">
								<div class="subtitle" ng-if="m.id"><i class="icon jinyunicon icon-dianpu"></i>  {{m.merchname || '多商户'}}</div>
								<div class="subtitle" ng-if="!m.id"><i class="icon jinyunicon icon-dianpu"></i>  {{pagedata.shopset.store_title || '平台自营'}}</div>
							</div>
							<div class="angle" style="color:#999;font-size:0.6rem">详情</div>
						</div> 
						<div href="javascript:;" ng-repeat="g in m.goods" class="external" data-nocache="true" ng-click="access_json('jy_newcar/orderdetail//orderid='+item.id)">
							<div class="fui-list">
								<div class="fui-list-media" style="">
									<img class="" ng-src="{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}">
								</div>
								<div class="fui-list-inner">
									<div class="text goodstitle towline">{{g.title}}</div>
									<div class="text" style="color:#f60;font-size:0.60rem">{{g.selespename || '无规格'}} x {{g.total || 1}} /{{g.unit ||'件'}}<span ng-if="g.weight!='0.00'"> ({{g.weight}}kg)</span></div>
					
								</div>
								<div class="fui-list-angle" style="width:auto">
									<div><span class="marketprice syscolorred">￥{{g.price}}</span></div>
								</div>
							</div>
						</div>
			</div>
		</div>
		<div class='infinite-loading' style="display:none" id="loading_show"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-if="pagedata.list.length==0" class='content-empty' >
			<i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i>
			<br/>
			<p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>
		</div>
		<div ng-include="sys_html('common/_copyright',true)"></div>
    </div>
</div>
<div ng-include="sys_html('mai/_footer')"></div>
<script>
scope.pagedata.get_list=function(){
	scope.tool.get_list('jy_newcar/mai.order/list/',true);
}
scope.tool.get_list('jy_newcar/mai.order/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_newcar/mai.order/list/');
}
</script>

